package com.joker.service;

import com.joker.dao.UserFriendMapper;
import com.joker.dao.UserFriendMapper2;
import com.joker.pojo.Messages.FriendMessage;
import com.joker.pojo.Messages.UserFriendMessage;
import com.joker.pojo.User;
import com.joker.pojo.UseridandFriendid;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class UserFriendServiceImpl2 implements UserFriendService2 {
    private UserFriendMapper2 userFriendMapper2;
    @Override
    public User showmyfiends(Integer userid) {
       User tempuser =userFriendMapper2.selectuser(userid);
        return tempuser;
    }

    @Override
    public ArrayList<FriendMessage> selectfriendmessages(UseridandFriendid useridandFriendid) {
        return userFriendMapper2.selectfriendmessages(useridandFriendid);
    }

    public void setUserFriendMapper2(UserFriendMapper2 userFriendMapper2) {
        this.userFriendMapper2 = userFriendMapper2;
    }

}
